﻿@model PSTUTemplate.Models.Object.ViewModels.EnrolMentCreateModel
@{
    ViewBag.Title = "Index";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
   
    <legend>Student Enrollment Form</legend>
    <fieldset>
        <div class="main-title">
            Faculty of @Model.Profiles.Faculty
            <br />
            Patuakhali Science and Technology University<br />
            Dumki,Patuakhali-8602<br />
            <u>@Model.Profiles.Faculty Enrollment Form</u><br />
            8th Semester (L- @Model.Profiles.Level,S-@Model.Profiles.Semester) January-June
            2012
        </div>
        <br />
        <div class="content">
            Name of the Student(Capital Letter) :
            @Html.TextBoxFor(model => model.Profiles.Name, new { @readonly = true, @disabled = true })
            @Html.ValidationMessageFor(model => model.Profiles.Name)
        </div>
        <br />
        <div class="content">
            Roll(Id no)(7 digit) :
            @Html.TextBoxFor(model => model.Profiles.Roll, new { @readonly = true, @disabled = true })
            @Html.ValidationMessageFor(model => model.Profiles.Roll)
        </div>
        <br />
        <div class="content">
            Session :
            @Html.TextBoxFor(model => model.Profiles.StartSession, new { @readonly = true, @disabled = true })
            @Html.ValidationMessageFor(model => model.Profiles.StartSession)
        </div>
        <br />
        <div class="content">
            Student Status :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.StudentStatus)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.StudentStatus)
        </div>
        <br />
        <div class="content">
            Previous Semester GPA :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.PreviousGPA)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.PreviousGPA)
        </div>
        <br />
        <div class="content">
            Previous Semester CGPA :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.PreviousCGPA)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.PreviousCGPA)
        </div>
        <br />
        <div class="content">
            Class Start Date :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.ClassStartDate)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.ClassStartDate)
        </div>
        <br />
        <div class="content">
            Enrollment Date :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.EnrolmentDate)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.EnrolmentDate)
        </div>
        <br />
        <div class="content">
            Bank Receipt No :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.BankReceiptNo)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.BankReceiptNo)
        </div>
        <br />
        <div class="content">
            ExamYear :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.ExamYear)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.ExamYear)
        </div>
        <br />
        <div class="content">
            Amount :
            @Html.EditorFor(model => model.Enrols.StudentEnrols.Amount)
            @Html.ValidationMessageFor(model => model.Enrols.StudentEnrols.Amount)
        </div>
    </fieldset>
    
    <fieldset>
        <div class="content">
            Name of the courses for F/I Removal Examination (If necessary):
        </div>
        <br />
        <div class="content">
            1.Course Title
            @Html.DropDownListFor(model => model.Enrols.FI1, Model.Enrols.DropDownCourse)
            @Html.ValidationMessageFor(model => model.Enrols.FI1)
        </div>
        <br />
        <div class="content">
            2.Course Title
            @Html.DropDownListFor(model => model.Enrols.FI2, Model.Enrols.DropDownCourse)
            @Html.ValidationMessageFor(model => model.Enrols.FI2)
        </div>
        <br />
        <div class="content">
            3.Course Title
            @Html.DropDownListFor(model => model.Enrols.FI3, Model.Enrols.DropDownCourse)
            @Html.ValidationMessageFor(model => model.Enrols.FI3)
        </div>
        <br />
        <div class="content">
            3.Course Title
            @Html.DropDownListFor(model => model.Enrols.FI4, Model.Enrols.DropDownCourse)
            @Html.ValidationMessageFor(model => model.Enrols.FI4)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    
}
@using (Html.BeginForm())
{
    <fieldset>
        <div class="content-last">
            Name of the courses intended to be enrolled:
        </div>
        <div class="content-last">
            <table border="1" align="right">
                <tr>
                    <th>
                        Course Code
                    </th>
                    <th>
                        Course Title
                    </th>
                </tr>
                @foreach (var item in Model.Enrols.GridCourseList)
                {
                    <tr>
                        <td>
                            @Html.DisplayFor(modelItem => item.Code)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Title)
                        </td>
                    </tr>
                }
            </table>
        </div>
    </fieldset>
}
